package com.ruoyi.project.business.book.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 图书对象 bs_book
 * 
 * @author ZW
 * @date 2022-04-08
 */
@TableName("bs_book")
@Data
public class Book2 extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** ISBN */
    @Excel(name = "ISBN")
    private String isbn;

    /** 书名 */
    @Excel(name = "书名")
    private String name;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /** 出版日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出版日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishDate;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal oldPrice;

    /** 现价 */
    @Excel(name = "现价")
    private BigDecimal newPrice;

    /** 出版地 */
    @Excel(name = "出版地")
    private String authorLoc;

    /** 是否套装 */
    @Excel(name = "是否套装")
    private Integer suit;

    /** 图书类别 */
    @Excel(name = "图书类别")
    private Integer category;

    /** 图书描述 */
    @Excel(name = "图书描述")
    private String info;

    /** 图书图片URL */
    @Excel(name = "图书图片URL")
    private String imgUrl;

    /** 类别ID */
    @Excel(name = "类别ID")
    private Integer fenleiId;

    @Excel(name = "类别名称")
    private String fenleiName;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setIsbn(String isbn)
    {
        this.isbn = isbn;
    }

    public String getIsbn()
    {
        return isbn;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setAuthor(String author)
    {
        this.author = author;
    }

    public String getAuthor()
    {
        return author;
    }
    public void setPublisher(String publisher)
    {
        this.publisher = publisher;
    }

    public String getPublisher()
    {
        return publisher;
    }
    public void setPublishDate(Date publishDate)
    {
        this.publishDate = publishDate;
    }

    public Date getPublishDate()
    {
        return publishDate;
    }
    public void setOldPrice(BigDecimal oldPrice)
    {
        this.oldPrice = oldPrice;
    }

    public BigDecimal getOldPrice()
    {
        return oldPrice;
    }
    public void setNewPrice(BigDecimal newPrice)
    {
        this.newPrice = newPrice;
    }

    public BigDecimal getNewPrice()
    {
        return newPrice;
    }
    public void setAuthorLoc(String authorLoc)
    {
        this.authorLoc = authorLoc;
    }

    public String getAuthorLoc()
    {
        return authorLoc;
    }
    public void setSuit(Integer suit)
    {
        this.suit = suit;
    }

    public Integer getSuit()
    {
        return suit;
    }
    public void setCategory(Integer category)
    {
        this.category = category;
    }

    public Integer getCategory()
    {
        return category;
    }
    public void setInfo(String info)
    {
        this.info = info;
    }

    public String getInfo()
    {
        return info;
    }
    public void setImgUrl(String imgUrl)
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl()
    {
        return imgUrl;
    }
    public void setFenleiId(Integer fenleiId)
    {
        this.fenleiId = fenleiId;
    }

    public Integer getFenleiId()
    {
        return fenleiId;
    }

    public void setFenleiName(String fenleiName)
    {
        this.fenleiName = fenleiName;
    }

    public String getFenleiName()
    {
        return fenleiName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("isbn", getIsbn())
            .append("name", getName())
            .append("author", getAuthor())
            .append("publisher", getPublisher())
            .append("publishDate", getPublishDate())
            .append("oldPrice", getOldPrice())
            .append("newPrice", getNewPrice())
            .append("authorLoc", getAuthorLoc())
            .append("suit", getSuit())
            .append("category", getCategory())
            .append("info", getInfo())
            .append("imgUrl", getImgUrl())
            .append("fenleiId", getFenleiId())
            .toString();
    }
}
